package com.leo.tool.rpc.rmi.server;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

import lombok.SneakyThrows;

public class Server {

    @SneakyThrows
    public static void main(String[] args) {
            LocateRegistry.createRegistry(8888);
            Naming.bind("rmi://localhost:8888/user", new UserImpl());
            System.out.println("RMI Server startup success");
    }
}
